<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <title>操作日志</title>
</head>
<script type="text/javascript" src="../scripts/jquery/jquery-1.7.1.js"></script>
<link rel="stylesheet" href="../style/bootstrap.min.css"/>
<body>
<div class="container">
    <div style="text-align: center;">
        <h3>操作日志</h3>
    </div>
    <table class="table table-striped table-hover table-condensed">
        <form action="/log/OperationLog" method="post">
            <tr>
                <th colspan="6">
                    用户：<input type="text" name="name" value=""/> &nbsp; 用户所在机构：
                    <input type="text" name="auditname" value=""/> &nbsp;
                    模块：<input type="text" name="module" value=""/> &nbsp; 模块内容：
                    <input type="text" name="content" value=""/> &nbsp;
                    <button type="submit" class="btn btn-success">高级查询</button>
                </th>
            </tr>
        </form>
        <tr>
            <th>操作人</th>
            <th>操作时间</th>
            <th>操作单位</th>
            <th>模块</th>
            <th>操作类型</th>
            <th>操作内容</th>
        </tr>
        <tr th:each="log : ${logAll}" th:Object="${log}">
            <td th:text="*{user.name}"></td>
            <td th:text="*{log.time}"></td>
            <td th:text="*{auditInstitution.auditname}"></td>
            <td th:text="*{log.module}"></td>
            <td th:text="*{log.type}"></td>
            <td th:text="*{log.content}"></td>
        </tr>
    </table>
    <div class="jump" style="float:right;">
        <ul class="pagination">
            <li class="page-item"><a href="/log/OperationLog?page=1">首页</a></li>
            <li class="page-item">
                <a th:href="@{/log/OperationLog?page=}+(${pager-1}<1?1:${pager-1})">上一页</a></li>
            <li class="page-item">
                <a th:href="@{/log/OperationLog?page=}+(${pager+1}>${pageCount}?${pageCount}:${pager+1})">下一页</a>
            </li>
            <li class="page-item">
                <a th:href="@{/log/OperationLog?page=}+${pageCount}">尾页</a>
            </li>
            <li class="page-item">
                <span th:text="'第'+${pager}+'页/共'+${pageCount}+'页'"></span>
            </li>
        </ul>
    </div>
</div>

</body>

</html>